package red.uec.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import red.uec.model.DataDictionaryQueryRequest;
import red.uec.model.DataDictionaryQueryResponse;
import red.uec.service.DataDictionaryService;

@RestController
@RequestMapping("/dataDictionary")
@Slf4j
public class DataDictionaryController {

    @Autowired
    private DataDictionaryService dataDictionaryService;

    @GetMapping("/group/{groupId}")
    public DataDictionaryQueryResponse query(DataDictionaryQueryRequest dataDictionaryQueryRequest){
        return dataDictionaryService.query(dataDictionaryQueryRequest);
    }
}